
KF701_FLAGS=-I../lib/ ../lib/libkf701.a

all:
	#gcc -pthread main.c -I../ -L../ -lkf701
	#export LD_LIBRARY_PATH=../
	$(CC) $(CFLAGS) -o thread.out thread_test.c $(KF701_FLAGS) -lpthread
	$(CC) $(CFLAGS) -o rand.out rand_test.c $(KF701_FLAGS)
	$(CC) $(CFLAGS) -o mail.out mail_test.c $(KF701_FLAGS)
	$(CC) $(CFLAGS) -o pad.out pad_test.c $(KF701_FLAGS)
	$(CC) $(CFLAGS) -o iconv.out iconv_test.c $(KF701_FLAGS)
	$(CC) $(CFLAGS) -o crypt.out crypt_test.c $(KF701_FLAGS) -lcrypt
	$(CC) $(CFLAGS) -o tty.out tty_test.c $(KF701_FLAGS)
	$(CC) $(CFLAGS) -o draw.out draw_test.c $(KF701_FLAGS) -lm
	$(CC) $(CFLAGS) -o tcpserver_epoll.out tcpserver_epoll_test.c $(KF701_FLAGS)
	$(CC) $(CFLAGS) -o tcpserver_select.out tcpserver_select_test.c $(KF701_FLAGS)
	$(CC) $(CFLAGS) -o echo_server.out echo_server.c $(KF701_FLAGS) -lpthread
	$(CC) $(CFLAGS) -o udpserver.out udpserver_test.c $(KF701_FLAGS)
	$(CC) $(CFLAGS) -o udpclient.out udpclient.c $(KF701_FLAGS)
	$(CC) $(CFLAGS) -o un_server.out un_server_test.c $(KF701_FLAGS)
	$(CC) $(CFLAGS) -o un_client.out un_client_test.c $(KF701_FLAGS)
	$(CC) $(CFLAGS) -o ddns.out ddns.c $(KF701_FLAGS) ${GLIB_INCLUDES} ${GLIB_LIBS}
	$(CC) $(CFLAGS) -o md5.out md5_test.c $(KF701_FLAGS)
	$(CC) $(CFLAGS) -o mem_pool.out mempool_test.c $(KF701_FLAGS)
	$(CC) $(CFLAGS) -o queue.out queue_test.c $(KF701_FLAGS)
	$(CC) $(CFLAGS) -o route-xxx.out route-xxx.c $(KF701_FLAGS)
	$(STRIP) *.out

clean:
	rm -f *.out
